package com.bestcem.xm.user.controller.vo.user.request;

import com.bestcem.xm.common.core.constant.RegTypes;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

/**
 * 账号-绑定手机号-绑定入参
 *
 * @author panyun <yun.pan@idiaoyan.com>
 * @version v1.0
 * @date 2022/3/1 17:59
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
public class BindMobileVO {

    /**
     * 手机号
     */
    @Pattern(regexp = RegTypes.MOBILE, message = "手机号格式不正确")
    private String mobile;

    /**
     * 验证码
     */
    @NotBlank(message = "验证码不能为空")
    private String vcode;

    /**
     * 场景类型（LOGIN_BIND_MOBILE, DELIVER_BIND_MOBILE, USER_INFO_BIND_MOBILE）
     */
    @NotNull(message = "sceneType不能为空")
    @JsonProperty("scene_type")
    private Integer sceneType;
}
